/* =====================================================================
   Items.css
   Componentes exclusivos usados por los templates de Oria_app
   ===================================================================== */

/* =========================
   DASHBOARD FILTER
   ========================= */
.catalog-filter {
  padding: 10px 0;
}

.filter-card {
  width: 100%;
  background: var(--white);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.filters-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.field {
  width: 100%;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 10px;
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
}

.select-wrap {
  position: relative;
  width: 100%;
}

.select-wrap select {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 18px;
  border: 2px solid #dfe7f5;
  border-radius: 12px;
  background: var(--white);
  color: #0f172a;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
}

.select-wrap select:focus {
  border-color: #b9cdf4;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.select-wrap .chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.65;
  pointer-events: none;
}

.filter-card .btn {
  width: 100%;
  height: 58px;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(202, 168, 91, 0.25);
}

.title-field {
  grid-column: span 1;
}

.title-field .input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
}

/* =========================
   DASHBOARD
   ========================= */
.dashboard-page {
  min-height: 100vh;
  padding: 120px 16px 50px;
}

.dashboard-container {
  width: min(1400px, 96vw);
  margin: 0 auto;
}

.dashboard-hero {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
}

.dashboard-hero__top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-table-wrap {
  width: 100%;
}

.dashboard-table-card {
  background: var(--white);
  padding: 22px;
  overflow: hidden;
}

.dashboard-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
}

.dashboard-table thead th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

.dashboard-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: var(--navy-900);
  font-size: 0.95rem;
  vertical-align: middle;
}

.dashboard-table tbody tr:hover {
  background: rgba(200, 164, 93, 0.08);
}

.dashboard-table__pdf {
  max-width: 220px;
  word-break: break-word;
}

/* =========================
   PROPERTY FORM
   ========================= */
.form-card {
  background: var(--white);
}

.form-alerts {
  background: #fff8e8;
  border-left: 6px solid var(--gold);
}

.property-form {
  display: grid;
  gap: 28px;
}

.property-form__section {
  display: grid;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
}

.property-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.property-form__field {
  width: 100%;
}

.property-form__field--full {
  grid-column: 1 / -1;
}

.property-form__textarea {
  min-height: 130px;
  resize: vertical;
  padding: 14px 16px;
}

.property-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.property-form__actions--between {
  justify-content: space-between;
  align-items: center;
}

/* =========================
   PROPERTY DETAIL
   ========================= */
.property-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.property-detail__main,
.property-detail__side {
  width: 100%;
}

.property-detail__card {
  background: var(--white);
}

.property-detail__media {
  overflow: hidden;
  background: var(--white);
}

.property-detail__img {
  width: 100%;
  min-height: 320px;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.property-detail__imgPlaceholder {
  min-height: 320px;
  gap: 12px;
  color: var(--gray-500);
}

.property-detail__imgPlaceholder i {
  font-size: 3rem;
}

.property-detail__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.property-detail__price {
  font-size: 1.3rem;
  font-weight: 700;
}

.property-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(200, 164, 93, 0.12);
  color: var(--navy-900);
  border: 1px solid rgba(200, 164, 93, 0.22);
  font-weight: 600;
  font-size: 0.92rem;
}

.detail-chip--on {
  background: rgba(70, 138, 78, 0.12);
  border-color: rgba(70, 138, 78, 0.22);
}

.detail-chip--off {
  background: rgba(107, 114, 128, 0.1);
  border-color: rgba(107, 114, 128, 0.18);
}

.property-detail__infoGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.detail-item {
  padding: 16px;
  border-radius: 14px;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-item__label {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.property-detail__sideList {
  display: grid;
  gap: 12px;
}

.detail-sideRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
}

.property-detail__links {
  display: grid;
  gap: 12px;
}

.property-detail__urlList {
  display: grid;
  gap: 14px;
  word-break: break-word;
  color: var(--gray-500);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (min-width: 768px) {
  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-page {
    padding: 130px 20px 60px;
  }

  .dashboard-hero {
    padding: 28px;
  }

  .title-field {
    grid-column: 1 / -1;
  }

  .property-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-detail__infoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) {
  .filters-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }

  .title-field {
    grid-column: auto;
  }

  .dashboard-hero__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .dashboard-table-card {
    padding: 26px;
  }

  .property-form__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .property-detail__grid {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 420px);
    align-items: start;
  }

  .property-detail__side {
    position: sticky;
    top: 120px;
  }

  .property-detail__head {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .property-detail__infoGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
